<?php
	require_once 'lib/sql.utils.php';
	$util = new SQLUtils();
	// define a filter
	$query = "SELECT name,created FROM diagrams ORDER BY created";
	$diagrams = $util->getRows($query);
	echo json_encode($diagrams);
?>